package util
{
	public class WebJquery
	{
		private var script:String;
		private var html:String;
		private var style:String;
		public function WebJquery()
		{
			this.script='<head>'+
      						'<link rel="stylesheet" href="http://127.0.0.1/flex/jquery.mobile-1.0b1.min.css" />'+
      						'<script src="http://127.0.0.1/flex/jquery-1.6.1.min.js"></script>'+
							'<script src="http://127.0.0.1/flex/jquery.mobile-1.0b1.min.js"></script>'+
							'</head>'+
							'<body><div data-role="page" data-theme="b">';
		}
		public function gethtml(tag:String,id:String):String
		{
			//change the id
			this.html='<font size=5><a href="Javascript: void(0)" onclick="toggle('+"'"+id+"'"+');">展开</a></font><'+tag+' id="'+id+'" '+"style='display:none;'";
			return html;
		}
		public function getscript():String
		{
			return script;
		}
		public function getnamehtml(tag:String,id:String,name:String):String
		{
			this.html='<font size=5><a id="a'+id+'" href="Javascript: void(0)" onclick="toggle('+"'"+id+"'"+');">'+name+'</a></font><'+tag+' id="'+id+'" '+"style='display:none;'";
			return html;
		}
		public function getstyle():String
		{
			return style;
		}
		public function gettop():String
		{
			return '<div class="go-top" style="right: 10px; opacity: 1; "><a href="atoc" id=""><span>返回目录</span></a></div>';
		}
	}
}